home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 June / PCWorld_2007-06_cd.bin / temacd / wikipad / WikidPad-1.9beta2.exe / {app} / WikidPadHelp / data / WikiDocumentAttributes.wiki < prev    next >
Encoding:
Text File  |  2006-05-08  |  5.3 KB  |  169 lines

  1. ∩╗┐++ Wiki Document Attributes
  2.  
  3. Wiki pages support "attributes". Attributes serve 2 purposes.  They
  4. allow you to index your data by attribute, in addition to by wikiword,
  5. and they are used to specify certain special wiki formatting commands.
  6.  
  7. You can attach attributes to a page like this:
  8.  
  9. [attribute: value]
  10.  
  11. Setting an attribute like this makes this document available under the
  12. *Views* node in the tree on the left, under importance/high.  Example
  13. attributes you might want to add to your wiki words might be:
  14.  
  15. [contact: work]
  16. [contact: private] for wiki contacts, ie JohnDoe
  17. [work-related: true] to mark something as work related
  18. [contact.personal.kids: school] to mark something as personal contact
  19. about school of the kids.
  20.  
  21. Open the "Views" node in the tree on the left to see how these attributes
  22. become available for reference.
  23.  
  24. +++ Attribute Based Tree Formatting
  25.  
  26. There are 3 special attributes you can attach to a page that control
  27. the appearance of the page's node in the tree. These attributes override any global settings (see below): 
  28.  
  29. icon: name (see TreeIcons)
  30. color: (white, blue, etc., see TreeNodeColors)
  31. bold: (true or false)
  32.  
  33. Example:
  34. [icon: lens] changes the icon for this page to a lens.
  35.  
  36. These attributes can also be written in a todo item. If used there, they control the presentation of the todo entry (below the special "Views" node) instead of the wiki page.
  37.  
  38. Example:
  39. todo: Show another color [color: orange]
  40.  
  41.  
  42.  
  43. You can also use global attribute properties to change the appearance based on the existence of other properties.
  44.  
  45. Examples:
  46.  
  47. [global.importance.high.bold=true]
  48.  
  49. This means any document in the wiki with an "importance" attribute
  50. that has a value of high will be bold.
  51. [importance: high]
  52. So setting the above attribute is what made this document bold
  53. in the tree.
  54.  
  55.  
  56. If the global definition contains the first part(s) of an attribute the appearance is also changed.
  57.  
  58. Example:
  59.  
  60. Above we had already defined:
  61. \[contact.personal.kids: school]
  62.  
  63. The following defines that pages containing attributes beginning with "contact" part have color Indian red:
  64. [global.contact.color: indian red]
  65.  
  66. But the node isn't colored so because of this more specific definition to use dark orchid for attributes beginning with "contact.personal":
  67. [global.contact.personal.color: dark orchid]
  68.  
  69.  
  70. When creating a new wiki some default global attributes are
  71. automatically attached to the root wiki document on the WikiSettings page.
  72.  
  73.  
  74. +++ Autocompletion
  75.  
  76. Attributes also support auto completion. Try it:
  77.  
  78. Place cursor after the m and press CTRL-SPACE
  79. [im
  80.  
  81.  
  82. +++ Special Attributes
  83.  
  84. *priority: 1-5*
  85. The priority setting will set the node text in the tree to
  86. "WikiDocumentAttributes (3)" for example.  It also will affect the
  87. importance setting of the node if "importance" is not already set.
  88.  
  89. [priority: 3]
  90.  
  91.  
  92. *font: font face name*
  93. Change the editor font of a page or the whole wiki.
  94. See WikiFonts for example and details.
  95.  
  96.  
  97. *alias: other page name*
  98. Set another name under which a page can be linked to.
  99.  
  100. Example:
  101. To this page can also be linked as WikiDocumentAttribute.
  102. [alias: WikiDocumentAttribute]
  103.  
  104.  
  105. *import_scripts: page to import scripts from*
  106. See InlinePythonEval.
  107.  
  108.  
  109. *child_sort_order: order how to sort child nodes in the tree*
  110. Possible values are:
  111.     * ascending: Sort alphabetically ascending
  112.     * descending: Sort alphabetically descending
  113.     * unsorted: Make no attempt to sort (fastest)
  114.     * natural: Sort in order of appearance of the words on the page (may not always work)
  115.  
  116. You can also use the attribute global.child_sort_order to control the default for the wiki (without this attribute "ascending" is used)
  117.  
  118.  
  119. *template: page which content should be used as template*
  120. See [Templates].
  121.  
  122.  
  123. *pagetype: type of the page*
  124. Controls some behavior of the editor.
  125.  
  126. Currently only type "form" is supported (see [FormPages] for details).
  127.  
  128.  
  129. *language: language code*
  130. Controls language of a page or the wiki (with "global." prepended) for [SpellChecking].
  131.  
  132.  
  133. *html.linkcolor*
  134. Specify the color of a link in preview/HTML export with a numeric HTML color (e.g. "#000000" for black).
  135.  
  136. *html.alinkcolor*
  137. Color of a link while hovering over it with the mouse or while mouse is pressed (depends on browser). Doesn't work for preview.
  138.  
  139. *html.vlinkcolor*
  140. Color of an already visited link. Doesn't work for preview.
  141.  
  142. *html.textcolor*
  143. Color of normal text.
  144.  
  145. *html.bgcolor*
  146. Color of background.
  147.  
  148. *html.bgimage*
  149. Link (URL) to a background image. Doesn't work for preview.
  150.  
  151.  
  152.  
  153. +++ Error checking
  154.  
  155. The content of a page is checked on saving for logical errors in some of the special attributes. There is a log window below the editor (normally hidden) which shows error messages if something is wrong.
  156.  
  157. Currently it checks the attributes alias, color, icon and bold. The presentation attributes inside todo items are not checked.
  158.  
  159. The log window normally automatically pops up if new messages arrive and automatically hides when there are no more messages (both can be switched off in configuration dialog.
  160.  
  161. To test the error checking, remove the backslash on the following line and save the page:
  162.  
  163. \[icon: doesntexist]
  164.  
  165. Double clicking a message brings the editor to the offending attribute. Position may be a bit off if page was modified after saving.
  166.  
  167.  
  168. [tree_position: 6]
  169.